package test;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import collector.Collector;
import collector.NetCollector;
import render.PieRender;
import render.Render;

public class Action {
	public static void main(String[] args) {
		//create spring  IOC container..
		ApplicationContext context = new ClassPathXmlApplicationContext("applicationContext.xml");
		Collector c1=context.getBean(Collector.class);
//		Collector c2=context.getBean(Collector.class); //只实例化一次
		NetCollector c11 = (NetCollector)c1;
		System.out.println(c11.getCname());
		
		
//		Render render = (Render)context.getBean("line");
//		render.render();
//		
//		System.out.println(">>>>>>>>>>>>>border>>>>>>>>>>>>>>>");
//		Render render2 = (Render)context.getBean("pie");
//		render2.render();

	}

}
